import { IDiceBar } from "../../common/dice/interfaces/IDiceBar";
//class DiceBarSkin
    
    export  class DiceBarSkin /* flash.display.Sprite */ implements IDiceBar
    {
        constructor(arg1: Object /* flash.display.MovieClip */)
        {
            
            this._animate = arg1;
            this.addChild(this._animate);
            var loc1;
            this._animate.y = loc1 = 0;
            this._animate.x = loc1;
            this._animate.gotoAndStop(1);
            return;
        }

        public gotoAndStop(arg1: number): void
        {
            this._animate.gotoAndStop(arg1);
            return;
        }

        public set label(arg1: string)
        {
            this._animate.label.text = arg1;
            return;
        }

        public show(arg1: Object /* flash.display.DisplayObjectContainer */): void
        {
            arg1.addChild(this);
            return;
        }

        public hide(): void
        {
            if (this.parent) 
            {
                this.parent.removeChild(this);
            }
            return;
        }

        /* internal */ /* var */_animate: Object /* flash.display.MovieClip */;
    }
